package CreationMode.single.demo06;

/**
 *  枚举方式 线程安全 不会被序列化和反射破坏结构
 */
public class Client {

    public static void main(String[] args) {
        Single single1 = Single.SINGLE;
        Single single2 = Single.SINGLE;

        System.out.println(single1 == single2);
    }
}
